package chpt04.shapes;

public class CircleMain {
	public static void main(String[] args) {
		Circle c = new Circle(10);
		Rectangle r = new Rectangle(10,10);
		// c.getId()代表子类可以访问父类的声明为public的getId()方法
		System.out.println(c.getId()+" "+c.getX()+" "+c.getY());
		System.out.println(c.getArea()+" "+c.getPerimeter());
		System.out.println(r.getArea()+" "+r.getPerimeter());
	}
}
